package org.cll.pattern.singleton.exampleone;

import java.io.IOException;

/**
 * @ClassName OrderController
 * @Description TODO
 * @Author Administrator
 * @Date 2024-09-04 18:16:14
 * @Version 1.0
 **/
public class OrderController {

    private Logger logger = new Logger();

    public OrderController() throws IOException {
    }

    public void create(String order) throws IOException, InterruptedException {
        // ...省略业务逻辑代码...
        for(int i = 0;i<10;i++){
            logger.log(order+i);
        }
        logger.close();
    }
}
